package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author cuichenglong
 * @since 2020-09-16
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_invoice_record")
public class CrowdsourceInvoiceRecord extends Model<CrowdsourceInvoiceRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 自然人ID
     */
    private int crowdsourceid;
    /**
     * 开票金额
     */
    private BigDecimal amount;
    /**
     * 开票月份
     */
    private String month;
    /**
     * 1.开票中，2.开票成功，3.开票失败
     */
    private int state;
    /**
     * 失败原因
     */
    private String msg;
    private Date updatetime;
    private Date createtime;

    /**
     * 共青城项目编号
     */
    @TableField("gq_project_number")
    private String gqProjectNumber;
    /**
     * 共青成项目流水
     */
    @TableField("gq_project_flowing")
    private String gqProjectFlowing;
    /**
     * 共青城合同编号
     */
    @TableField("gq_contract_number")
    private String gqContractNumber;
    /**
     * 共青城合同流水
     */
    @TableField("gq_contract_flowing")
    private String gqContractFlowing;
    /**
     * 共青城结算流水
     */
    @TableField("gq_settlement_flowing")
    private String gqSettlementFlowing;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
